package com.dearxue.java_8_features;

import java.util.Optional;

public class OptionalAddress {

  private String street;

  public Optional<String> getStreet() {
    return Optional.ofNullable(street);
  }

  public void setStreet(String street) {
    this.street = street;
  }
}
